package com.jjh.service;

import com.jjh.consts.Result;
import com.jjh.pojo.Taocan;
import com.jjh.pojo.vo.TaocanVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface TaoCanService {
    Result page(Integer page, Integer size, Map<String, Object> map);


    List<Taocan> getByCondition(Map<String, Object> map);

    @Transactional
    Result addTaoCan(TaocanVo taocanVo);

    Result getById(Integer id);

    Result getTaoCanDishesByTid(Integer taocanId);

    @Transactional
    Result updateTaocan(TaocanVo taocanVo);

    Result changeStatus(Integer id, Integer status);

    @Transactional
    Result deleteTaocans(List<Integer> ids);
}
